$(document).on('pagebeforeshow', '#pagina2', function (event) {
    TweenLite.to(".menu", 1, {alpha:0});
    $("#icoPg1").removeClass('active');
    $("#icoPg2").toggleClass('active').siblings().removeClass('active');
    $("#icoPg3").removeClass('active');
    $("#icoPg3").removeClass('active');
    $("#icoPg3").removeClass('active');
    $("#icoPg6").removeClass('active');
    $("#icoPg7").removeClass('active');


paginaAtual =2;
grid.defineGrid(paginaAtual);
podeVirar(paginaAtual);


});

$(document).on('pageshow', '#pagina2', function (event) {
   
    //$("#bgBaixo").animate({ bottom: -110 }, 1500);
     TweenLite.to("#bgBaixo", 1.5, {bottom:"-110"});
    //console.log($("#imagemPg2 img"))














});

$(document).on('pagebeforehide', '#pagina2', function (event) {
   // $("#bgBaixo").animate({ bottom: -255 }, 300);
     TweenLite.to("#bgBaixo", 0.5, {bottom:"-255"});
});